writing linear equations given two points